/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2019-10-22 14:39:05
 * @LastEditors  : sueRimn
 * @LastEditTime : 2020-01-09 11:28:46
 */
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 权限控制
import './router/rolePermission'
// 引入element框架
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// element主题配置
// 状态管理
import store from './store'
// 全局指令
import './directives/install'
// 全局mixins
import './mixins/install'
// 全局过滤器
import './filters/install'
// 引入font-awesome字体图标
import 'font-awesome/css/font-awesome.min.css'

import myCharts from './util/myCharts'

Vue.use(myCharts)
Vue.use(ElementUI, {size: 'small', zIndex: 3000})

Vue.config.productionTip = false

// Vue.mixin({
//   watch: {
//     '$route' (n, o) {
//       console.log('$route', n, o)
//       if (n.name === o.name) {
//         if (n.query._ && (n.query._ !== o.query._)) {
//           this.handleReset()
//         }
//       }
//     }
//   }
// })

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
